<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Programación en Entornos Interactivos 2010/2011: Fichero Fuente Modelo/Asignatura.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generado por Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Página&nbsp;principal</span></a></li>
      <li><a href="pages.html"><span>Páginas&nbsp;relacionadas</span></a></li>
      <li><a href="annotated.html"><span>Clases</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;de&nbsp;archivos</span></a></li>
    </ul>
  </div>
<h1>Modelo/Asignatura.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef ASIGNATURA_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define ASIGNATURA_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;Modelo.h&quot;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;Profesor.h&quot;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;Companero.h&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;Nota.h&quot;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;Cita.h&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;Sesion.h&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00012"></a>00012 
<a name="l00017"></a><a class="code" href="classAsignatura.html">00017</a> <span class="keyword">class </span><a class="code" href="classAsignatura.html">Asignatura</a> : <span class="keyword">public</span> <a class="code" href="classModelo.html">Modelo</a>
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019 <span class="keyword">public</span>:
<a name="l00024"></a>00024     <a class="code" href="classAsignatura.html#acee8eca8c0a438e34fcd4a98053ae977">Asignatura</a>(<span class="keyword">const</span> std::string &amp;nombre = <span class="stringliteral">&quot;&quot;</span>);
<a name="l00025"></a>00025 
<a name="l00030"></a>00030     <a class="code" href="classAsignatura.html#ae0c6a7a01b32f9b1c45fefd9c07f6b54">~Asignatura</a>();
<a name="l00031"></a>00031 
<a name="l00036"></a>00036     std::string <a class="code" href="classAsignatura.html#af725527bc1459516df0dbc0106a8f8bf">getNombre</a>() <span class="keyword">const</span>;
<a name="l00037"></a>00037 
<a name="l00042"></a>00042     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a8b68f5e83d85c0dbd7b0a8bef664ef23">setNombre</a>(<span class="keyword">const</span> std::string &amp;nombre);
<a name="l00043"></a>00043 
<a name="l00049"></a>00049     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a2d51b6d932e121b8a7b211caa0b097d0">anadirProfesor</a>(<a class="code" href="classProfesor.html">Profesor</a> *profesor);
<a name="l00050"></a>00050 
<a name="l00056"></a>00056     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a3b5af5bf45992674ed0caee8840655af">anadirCompanero</a>(<a class="code" href="classCompanero.html">Companero</a> *companero);
<a name="l00057"></a>00057 
<a name="l00063"></a>00063     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a5578d65b30d5f09ee616ccc43112fd9e">anadirNota</a>(<a class="code" href="classNota.html">Nota</a> *nota);
<a name="l00064"></a>00064 
<a name="l00070"></a>00070     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#aecaee6f4cb64aaa9d1e7c5aaaaf3949f">anadirCita</a>(<a class="code" href="classCita.html">Cita</a> *cita);
<a name="l00071"></a>00071 
<a name="l00077"></a>00077     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a2ff65b5a403180752f23b878f69687b3">anadirSesion</a>(<a class="code" href="classSesion.html">Sesion</a> *sesion);
<a name="l00078"></a>00078 
<a name="l00083"></a>00083     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a5c2f7e5f600102ffe13748e7e729609c">quitarProfesor</a>(<a class="code" href="classProfesor.html">Profesor</a> *profesor);
<a name="l00084"></a>00084 
<a name="l00089"></a>00089     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#aff1d178a47e13fd5d3baf8fc0ae2e999">quitarCompanero</a>(<a class="code" href="classCompanero.html">Companero</a> *companero);
<a name="l00090"></a>00090 
<a name="l00095"></a>00095     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a8211d78d2b1bcdcbebe8a8eceb80d91f">quitarNota</a>(<a class="code" href="classNota.html">Nota</a> *nota);
<a name="l00096"></a>00096 
<a name="l00101"></a>00101     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#ac7c6779a28a5182a2ab5805f64313d61">quitarCita</a>(<a class="code" href="classCita.html">Cita</a> *cita);
<a name="l00102"></a>00102 
<a name="l00107"></a>00107     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a4e3ff79744e9547344133f4ec4a0b474">quitarSesion</a>(<a class="code" href="classSesion.html">Sesion</a> *sesion);
<a name="l00108"></a>00108 
<a name="l00113"></a>00113     <span class="keyword">const</span> std::list&lt;Profesor*&gt;&amp; <a class="code" href="classAsignatura.html#a18d8d8bc4903cb6cb447d66640862053">obtenerProfesores</a>() <span class="keyword">const</span>;
<a name="l00114"></a>00114 
<a name="l00119"></a>00119     <span class="keyword">const</span> std::list&lt;Companero*&gt;&amp; <a class="code" href="classAsignatura.html#a586c79cdb2ba38e8132dbc257d8bc091">obtenerCompaneros</a>() <span class="keyword">const</span>;
<a name="l00120"></a>00120 
<a name="l00125"></a>00125     <span class="keyword">const</span> std::list&lt;Nota*&gt;&amp; <a class="code" href="classAsignatura.html#a3365692bac7f3e930a642072a9708cb3">obtenerNotas</a>() <span class="keyword">const</span>;
<a name="l00126"></a>00126 
<a name="l00131"></a>00131     <span class="keyword">const</span> std::list&lt;Cita*&gt;&amp; <a class="code" href="classAsignatura.html#a3bb43d61c3227e229ec69e8c3911722b">obtenerCitas</a>() <span class="keyword">const</span>;
<a name="l00132"></a>00132 
<a name="l00137"></a>00137     <span class="keyword">const</span> std::list&lt;Sesion*&gt;&amp; <a class="code" href="classAsignatura.html#a186580f517195d9c73325c12fec42fbc">obtenerSesiones</a>() <span class="keyword">const</span>;
<a name="l00138"></a>00138 
<a name="l00143"></a>00143     std::string <a class="code" href="classAsignatura.html#a8b9f816493480592953fd3940782203e">toXml</a>() <span class="keyword">const</span>;
<a name="l00144"></a>00144 
<a name="l00149"></a>00149     <span class="keywordtype">void</span> <a class="code" href="classAsignatura.html#a732fa45df1d364b4e63724ae1f9286d6">fromXml</a>(<span class="keyword">const</span> std::string &amp;xml);
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="keyword">private</span>:
<a name="l00152"></a>00152     std::string nombre;
<a name="l00153"></a>00153     std::list&lt;Profesor*&gt; profesores;
<a name="l00154"></a>00154     std::list&lt;Companero*&gt; companeros;
<a name="l00155"></a>00155     std::list&lt;Nota*&gt; notas;
<a name="l00156"></a>00156     std::list&lt;Cita*&gt; citas;
<a name="l00157"></a>00157     std::list&lt;Sesion*&gt; sesiones;
<a name="l00158"></a>00158 };
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 <span class="preprocessor">#endif </span><span class="comment">/* ASIGNATURA_H */</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generado el Mon Apr 25 18:18:54 2011 para Programación en Entornos Interactivos 2010/2011 por&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
